package com.onesports.intelligent.k12.polarlight.security.wx;


import com.onesports.intelligent.k12.polarlight.security.DomainUserDetails;
import com.onesports.intelligent.k12.polarlight.service.sys.AccountService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component("wxUserDetailsService")
public class WxUserDetailsService implements UserDetailsService {

    private final Logger log = LoggerFactory.getLogger(WxUserDetailsService.class);

    private final AccountService accountService;

    public WxUserDetailsService(AccountService accountService) {
        this.accountService = accountService;
    }

    @Override
    @Transactional
    public UserDetails loadUserByUsername(final String openid) {
        return new DomainUserDetails();
    }
}
